package com.example.my_flea_street.service.impl;

import com.example.my_flea_street.Mapper.NoticeMapper;
import com.example.my_flea_street.bean.Notice;
import com.example.my_flea_street.service.NoticeService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "noticeService")
public class NoticeServiceImpl implements NoticeService {

    @Resource
    NoticeMapper noticeMapper;
    @Override
    public Page<Notice> getNotices() {
        return noticeMapper.getNotices();
    }

    @Override
    public int getNoticesTotal() {
        return noticeMapper.getNoticesTotal();
    }
}
